﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Dycox.Collections;

namespace Dycox.Reporting
{
    public class TableCellCollection : OwnedCollection<TableCell, TableRow>
    {
        public TableCellCollection(TableRow row)
            : base(row)
        {

        }

        protected override void SetItemOwner(TableCell item, TableRow parent)
        {
            item.Row = parent;
        }

        protected override TableRow GetItemOwner(TableCell item)
        {
            return item.Row;
        }
    }
}
